<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>{block name="title"}{$title|default="Wampserver"}{/block}</title>
    <meta name="keywords" content="WampServer,wamp,PHP,Apache,MySQL,MariaDB">
    <script src="/static/bootstrap-5.3.2/js/theme.js"></script>
    <link rel="stylesheet" href="/public/static/bootstrap-5.3.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="/public/static/bootstrap-icons-1.11.1/bootstrap-icons.css">
    <style>
        #top-navbar {background-color: var(--bs-body-bg)}
        .footer {
            border-top: 1px solid rgba(0,0,0,.1);
        }
    </style>
    {block name="head"}{/block}
</head>
<body>
{block name="top-nav"}
<nav class="navbar navbar-expand-lg fixed-top" id="top-navbar">
    <div class="container">
        <a class="navbar-brand" href="{:url('index/index')}">WampServer</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#top-nav" aria-expanded="false" aria-label="切换导航">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="top-nav">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Index/index')}">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Article/index')}">教程</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Index/news')}">更新</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Index/help')}">帮助</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="https://gitee.com/jwj666/wampserver-chinese-translate" target="_blank">中文翻译包</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="https://jq.qq.com/?_wv=1027&k=Sze3hfmY" target="_blank" title="WampServer使用交流群">QQ群</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Index/about')}">关于</a>
                </li>
            </ul>
            <form class="d-flex ms-md-auto" action="{:url('Search/index', [], false)}" method="get">
                <div class="input-group">
                    <input class="form-control" name="keywords" type="search" placeholder="请输入搜索关键字" aria-label="Search" required>
                    <button class="btn btn-outline-success" type="submit">搜索</button>
                </div>
            </form>
            <div class="d-flex ms-md-3 dropdown">
                <button class="btn btn-outline-secondary dropdown-toggle" id="bd-theme" data-bs-toggle="dropdown" aria-expanded="false">
                    <i class="bi bi-moon-stars-fill" id="theme-icon-active"></i>
                    <span class="d-lg-none ms-2" id="bd-theme-text">切换主题</span>
                </button>
                <ul class="dropdown-menu dropdown-menu-end">
                    <li>
                        <button class="dropdown-item" data-bs-theme-value="light">
                            <i class="bi bi-brightness-high-fill"></i>
                            亮色主题
                        </button>
                    </li>
                    <li>
                        <button class="dropdown-item" data-bs-theme-value="dark">
                            <i class="bi bi-moon-stars-fill"></i>
                            暗黑主题
                        </button>
                    </li>
                    <li><hr class="dropdown-divider"></li>
                    <li>
                        <button class="dropdown-item" data-bs-theme-value="auto">
                            <i class="bi bi-circle-half"></i>
                            自动切换
                        </button>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</nav>
{/block}
{block name="body"}{/block}
<footer class="footer mt-4 ps-2 pe-2 text-center">
    <a href="http://beian.miit.gov.cn/" target="_blank">粤ICP备17128882号</a>
    <a href="https://gitee.com/jwj666/wampserver-site" target="_blank">代码开源</a>
    <a href="{:url('Index/sitemap', [], false)}" target="_blank">Sitemap</a>
</footer>

<script src="/public/static/js/jquery.min.js?v=3.3.1"></script>
<script src="/public/static/bootstrap-5.3.2/js/bootstrap.bundle.min.js"></script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?895cf271dded76325c93cd5713f5e88e";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>